package common.web.action;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import common.web.vo.Result;

/**
 * 
 * 权限不足时，进入的Action
 * @author Administrator
 *
 */
@Controller
@RequestMapping()
public class DeniedAction extends CommonAction {


	@RequestMapping("/denied")
	@ResponseBody
	public Result denied(HttpServletResponse response){
		noCache(response);
		
		System.out.println("denied : " + Result.Status.DENIED);
		return Result.fail(Result.Status.DENIED);
	}

}
